﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using DomainModel; // this is required
using BL; // this is required
namespace SL
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService2" in both code and config file together.
    [ServiceContract]
    public interface ISLOrder
    {

        [OperationContract]
        void InsertOrders(Order order, ref List<string> errors);

        [OperationContract]
        double GetTotalPrice(int id, ref List<string> errors);

        [OperationContract]
        List<OrderItem> GetOrderProducts(int id, ref List<string> errors);

        [OperationContract]
        void DeleteAllRecords(ref List<string> errors);

        [OperationContract]
        int NumOrderEntries(ref List<string> errors);

        [OperationContract]
        void PlaceOrder(int order_num, ref List<string> errors);

        [OperationContract]
        int SeeIfOrderPlaced(int order_num, ref List<string> errors);

        [OperationContract]
        List<OrderItem> SeeMyHistory(int id, ref List<string> errors);

        [OperationContract]
        List<Order> GetCustomerOrders(int id, ref List<string> errors);

    }
}
